package mars.mp3player.core;

import mars.mp3player.R;
import android.app.TabActivity;
import android.content.Intent;
import android.content.res.Resources;
import android.os.Bundle;
import android.widget.TabHost;
 
public class MainActivity extends TabActivity {
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main);
		
		TabHost tabHost=getTabHost();
		Resources res=getResources();
		Intent remoteIntent=new Intent();
		remoteIntent.setClass(MainActivity.this, RemoteMP3Activity.class);
		TabHost.TabSpec remoteSpec=tabHost.newTabSpec("Remote");
		remoteSpec.setIndicator("Remote",res.getDrawable(android.R.drawable.stat_sys_download));
		remoteSpec.setContent(remoteIntent);
		tabHost.addTab(remoteSpec);
		
		Intent localIntent=new Intent();
		localIntent.setClass(MainActivity.this, LocalMP3Activity.class);
		TabHost.TabSpec localSpec=tabHost.newTabSpec("Local");
		localSpec.setIndicator("Local",res.getDrawable(android.R.drawable.stat_sys_download));
		localSpec.setContent(localIntent);
		tabHost.addTab(localSpec);
	}
}
